﻿using BaiTu.EventEntity;
using BaiTu.Framework.Core.Interfaces;
using BaiTu.IEventServices;
using BaiTu.IOCServices;
using BaiTu.IQueueService;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BaiTu.EventServices.Providers
{
    public class LocalEventBusProvider : IEventBusProvider
    {
        private IQueue queueSrv = EngineContext.Current.Resolve<IQueue>();

        public void Publish(IEvent evt)
        {
            //EventInfo info = new EventInfo();
            //info.Xml = Common.Helpers.XMLSerializationHelper.Serialize(evt.GetType(), evt);
            //queueSrv.SendRequestToWorker<EventInfo>(info);
        }

        public void Subscribe(string evtClassType)
        {
        }
    }
}
